package cn.cdu.basics.baseClass;

import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

/**
 * 基础服务实现类
 */
@Transactional
public abstract class BaseServiceImpl<E, ID extends Serializable> implements BaseService<E, ID> {

    private BaseDao<E, ID> baseDao;

    protected void setBaseDao(BaseDao<E, ID> baseDao) {
        this.baseDao = baseDao;
    }

    @Override
    public BaseDao<E, ID> getRepository() {
        return this.baseDao;
    }
} 
 
 
 